package kz.pompei.oneGwtStands.client.remote.data;

import kz.pompei.OneGwt.cmodel.SimpleRecord;

public class RoleEntity {
  private String id;
  private String code;
  private String name;
  
  public String getId() {
    return id;
  }
  
  public void setId(String id) {
    this.id = id;
  }
  
  public String getCode() {
    return code;
  }
  
  public void setCode(String code) {
    this.code = code;
  }
  
  public String getName() {
    return name;
  }
  
  public void setName(String name) {
    this.name = name;
  }
  
  public SimpleRecord toSimpleRecord() {
    return new SimpleRecord( getId(), getName() );
  }
}
